package school.xauat.offershow.controller;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import school.xauat.offershow.pojo.Education;
import school.xauat.offershow.serice.EducationService;

import java.util.List;

/**
 * @author ：zsy
 * @date ：Created 2021/12/16 23:52
 * @description：
 */
@RestController
@Api(tags = {"学历Controller"})
public class EducationController {

    @Autowired
    EducationService educationService;

    @GetMapping("/education/getAll")
    public List<Education> getAll() {
        return educationService.getAll();
    }
}
